package top.wettis.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.wettis.chat.pojo.DO.Objectives;

import java.util.List;

/**
 * <p>
 * 目标 Mapper 接口
 * </p>
 *
 * @author wettis
 * @since 2023-03-25
 */
@Mapper
public interface ObjectivesMapper extends BaseMapper<Objectives> {

    void deleteAll(@Param("id") int userid);

    int countgjd(@Param("jd") int i, @Param("id") int userId);

    Objectives selectcur(@Param("id") Integer id);

    void punch(@Param("id") Integer taskId);

    List<Objectives> selectAllById(@Param("id") int ui);

    Integer countt(@Param("id") int userid);

    List<Objectives> selectByli(@Param("id") int userId,@Param("level") int curLevl);
}
